<?php
namespace app\api\model\wanlshop;

use think\Model;

class AccIncome extends Model
{
    // 表名
    protected $name = 'accumulated_income';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    public function good(){
       return $this->belongsTo(Goods::class);
    }

}